#!/bin/bash
echo "检查 MSYS2 环境..."
echo

echo "1. 检查终端类型:"
echo "   MSYSTEM: $MSYSTEM"
echo "   PATH: $PATH" | head -1
echo

echo "2. 检查编译器:"
if command -v g++ &> /dev/null; then
    echo "   ✅ g++ 找到: $(which g++)"
    g++ --version | head -1
else
    echo "   ❌ g++ 未找到"
fi
echo

echo "3. 检查 wxWidgets:"
if pkg-config --exists wxwidgets; then
    echo "   ✅ wxWidgets 找到"
    echo "   版本: $(pkg-config --modversion wxwidgets)"
    echo "   标志: $(pkg-config --cflags wxwidgets)"
else
    echo "   ❌ wxWidgets 未找到"
fi
echo

echo "4. 检查当前目录:"
pwd
ls -la *.cpp *.h 2>/dev/null
echo

echo "环境检查完成!"
